package com.dmagic.cms.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.hibernate.annotations.Where;

import com.dmagic.cms.common.Constants;
import com.dmagic.cms.common.entity.ModifyInfoEntity;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "dmagic_inquire_info")
@Where(clause = ModifyInfoEntity.ISOBSOLETE_DATE_IS_NULL)
@JsonAutoDetect
@JsonIgnoreProperties(value = { "createdBy", "createdOn", "modifiedBy", "modifiedOn", "isObsoleteDate" })
public class InquireInfo extends ModifyInfoEntity implements Serializable {

	/**
     * 
     */
	private static final long serialVersionUID = 298457383602489242L;

	private Long inquireInfoId;

	private String consultant;

	private String consultantCompany;

	private String consultantTel;

	private String consultantEmail;

	private String consultantFax;

	private String consultantAddress;

	private String opinion;

	public InquireInfo() {
		super();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = Constants.ID_GENERATOR)
	@TableGenerator(name = Constants.ID_GENERATOR, // Generator Name which same
													// with
													// generator
	table = Constants.ID_GENERATOR, // Generator Table Name
	pkColumnName = Constants.PK_COLUMNNAME, // Generator Table column Id name
	valueColumnName = Constants.VALUE_COLUMN_NAME, // Generator Table column Id
													// value
	pkColumnValue = "InquireInfo", // entity Name
	allocationSize = (Constants.ID_GENERATOR_ALLLCATIONSIZE), initialValue = Constants.ID_GENERATOR_INITIALVALUE)
	public Long getInquireInfoId() {
		return inquireInfoId;
	}

	public void setInquireInfoId(Long inquireInfoId) {
		this.inquireInfoId = inquireInfoId;
	}

	public String getConsultant() {
		return consultant;
	}

	public void setConsultant(String consultant) {
		this.consultant = consultant;
	}

	public String getConsultantCompany() {
		return consultantCompany;
	}

	public void setConsultantCompany(String consultantCompany) {
		this.consultantCompany = consultantCompany;
	}

	public String getConsultantTel() {
		return consultantTel;
	}

	public void setConsultantTel(String consultantTel) {
		this.consultantTel = consultantTel;
	}

	public String getConsultantEmail() {
		return consultantEmail;
	}

	public void setConsultantEmail(String consultantEmail) {
		this.consultantEmail = consultantEmail;
	}

	public String getConsultantFax() {
		return consultantFax;
	}

	public void setConsultantFax(String consultantFax) {
		this.consultantFax = consultantFax;
	}

	public String getConsultantAddress() {
		return consultantAddress;
	}

	public void setConsultantAddress(String consultantAddress) {
		this.consultantAddress = consultantAddress;
	}

	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}
}